const mysql = require("mysql");
// mysql.createPool创建连接池可以直接连接 实现多个连接
// mysql.createConnection单独创建链接 需要调用db.connect()方法
const db = mysql.createPool({
  host: "localhost",
  user: "root",
  password: "123456",
  database: "my_db_01",
});
module.exports = db;
